package com.fenghongzhang.login.mvp.presenter;

import android.util.Log;

import com.fenghongzhang.lib.mvp.presenter.BasePresenter;
import com.fenghongzhang.login.mvp.contract.UserContract;

//操作view和modle
public class UserPresenter extends BasePresenter<UserContract.IUserModel,UserContract.IUserView> {

    private static final String TAG = "UserPresenter";
    public UserPresenter(UserContract.IUserModel mModel, UserContract.IUserView mView) {
        super(mModel, mView);
    }

    //控制view和model的交互
    public void login(String name,String pwd){
        mModel.login(name,pwd);
        Log.i(TAG, "login: ");
        mView.showToast("成功!");
    }
}
